package com.egg.ylt.adapter.home;

import android.content.Context;

import com.egg.ylt.R;
import com.yonyou.framework.library.adapter.rv.CommonAdapter;
import com.yonyou.framework.library.adapter.rv.MultiItemTypeAdapter;
import com.yonyou.framework.library.adapter.rv.ViewHolder;

/**
 * Created by lijiateng on 2019/1/17.
 */

public class ADA_HomeFragment extends MultiItemTypeAdapter<String> {

    private static final int VIEW_TYPE_BANNER = 0;
    private static final int VIEW_TYPE_CARD = 1;
    private static final int VIEW_TYPE_SHOP = 2;

    public ADA_HomeFragment(Context context) {
        super(context);
    }




    @Override
    public int getItemViewType(int position) {
        switch (position) {
            case 0:
                return VIEW_TYPE_BANNER;
            case 1:
                return VIEW_TYPE_CARD;
            default:
                return VIEW_TYPE_SHOP;
        }
    }
}
